package cn.homework.service.impl;

import cn.homework.dao.PaymentDao;
import cn.homework.dao.impl.PaymentDaoImpl;
import cn.homework.domain.Payment;
import cn.homework.service.PaymentService;

import java.util.List;
import java.util.Map;

/**
 * @author ACT
 */
public class PaymentServiceImpl implements PaymentService {
    private PaymentDao dao = new PaymentDaoImpl();

    @Override
    public List<Payment> findPaymentMethod() {
        return dao.findPaymentMethod();
    }

    @Override
    public void delPaymentById(String id) {
        dao.delPaymentById(id);
    }

    @Override
    public List<Payment> findPaymentCondition(Map<String, String[]> map) {
        return dao.findPaymentCondition(map);
    }

    @Override
    public void addPayment(Payment payment) {
        dao.addPayment(payment);
    }
}
